<?php
use app\member\Lib\Weixin;
function buildUrl($base,$param='') {
   $baseurl = config("domain").url($base,$param);
   $weixin = new Weixin(config("corpId"), config("secret"),config("agentid"));
   $url = $weixin->OAuthUrl($baseurl);
   return $url;
}